home *** CD-ROM | disk | FTP | other *** search
/ Champak 41 / Volume 41 - JOGO DISK .iso / Games / konka_66.swf / scripts / DefineSprite_170 / frame_1 / DoAction.as
Text File  |  2007-05-10  |  263b  |  14 lines

  1. this.onEnterFrame = function()
  2. {
  3.    var _loc2_ = int(_parent.nhp / _parent.mhp * 100);
  4.    gotoAndStop(_loc2_ + 1);
  5.    if(_parent.nhp < 0)
  6.    {
  7.       _parent.nhp = 0;
  8.    }
  9.    if(_parent.nhp > _parent.mhp)
  10.    {
  11.       _parent.nhp = _parent.mhp;
  12.    }
  13. };
  14.